<template>
    <div>
        <h2>Mine - mine -mine</h2>
        <h2>个人中心</h2>
        <!-- <Todo></Todo>
        <Parent></Parent> -->
        <hr>
        <div>
            <p v-for="(l,i) in list" :key='i'>
                {{l.goodsName}} --- {{l.goodsSale}}
            </p>
        </div>

    </div>
</template>

// <script>
import Parent from '@/components/parents.vue'
import axios from 'axios'
export default {
    components:{
        Parent
    },
    data(){
        return{
            list:[]
        }
    },
    mounted(){
        axios.get("/getgoodlist")
        .then(res=>{
            console.log(res)
            // this.list=res.data.data
        })
    },
    created(){
        axios.post("/getgoods")
        .then(res=>{
            console.log(res)
            this.list=res.data.data.data
        })
    }
}
</script>